package server;

import java.io.IOException;
import java.util.Set;

import commons.exception.StorageUnitNotFoundException;
import commons.operation.Operation;

public interface StorageDevice {

	public StorageUnitID createStorageUnit() throws IOException;

	public Set<StorageUnitID> list();

	public Object operateOverStorageUnit(Operation operation,
			StorageUnitID storageUnitId) throws StorageUnitNotFoundException,
			IOException;

	public void removeStorageUnit(StorageUnitID storageUnitId)
			throws StorageUnitNotFoundException, IOException;
}
